body { font-family: Arial, sans-serif; margin: 20px; }
.file-list { width: 100%; border-collapse: collapse; }
.file-list th, .file-list td { padding: 10px; text-align: left; border-bottom: 1px solid #ddd; }
.upload-form {
    margin-bottom: 20px;
    padding: 24px 32px;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    body { margin: 8px; }
    .upload-form { padding: 12px 6px; max-width: 100%; }
    .file-list th, .file-list td { padding: 6px; font-size: 13px; }
    h1, h2 { font-size: 18px; }
}
.upload-form h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: #333;
    text-align: center;
}
.upload-form form > div {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
.upload-form label {
    min-width: 60px;
    font-size: 15px;
    color: #555;
    margin-right: 10px;
}
.upload-form input[type="text"], #fileSearchInput {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
}

.search-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

#fileSearchInput {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#fileSearchInput:focus {
    border-color: #409eff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(64,158,255,0.2);
}

.search-container button {
    padding: 8px 16px;
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-container button:hover {
    background-color: #337ecc;
}
.upload-form input[type="text"]:focus {
    border-color: #409eff;
    outline: none;
}
.upload-form input[type="file"] {
    display: none;
    flex: 1;
    font-size: 15px;
    border: none;
    background: none;
}
.upload-form button[type="submit"] {
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(64,158,255,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.upload-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #66b1ff 0%, #409eff 100%);
    box-shadow: 0 2px 8px rgba(64,158,255,0.15);
}
#uploadStatus { margin-top: 10px; color: #666; }
.file-list td small {
    display: block;
    font-size: 12px;
    line-height: 1.4;
}
.file-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
}
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}
.qr-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}
.qr-modal img {
    max-width: 300px;
    max-height: 300px;
}
.close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}
.tab-bar {
    gap: 16px;
    margin-bottom: 18px;
    justify-content: center;
    background: #f4f7fa;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(64,158,255,0.06);
}
.tab-btn {
    background: none;
    border: none;
    outline: none;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 500;
    color: #409eff;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, font-weight 0.2s;
    position: relative;
}
.tab-btn:not(.tab-active):hover {
    background: #eaf3ff;
    color: #1976d2;
}
.tab-btn.tab-active {
    background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(64,158,255,0.10);
    z-index: 2;
}
@media (max-width: 600px) {
    .tab-bar {
        gap: 6px;
        padding: 2px 0;
    }
    .tab-btn {
        font-size: 14px;
        padding: 7px 10px;
    }
}
.file-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 auto;
    max-width: 900px;
    justify-content: flex-start;
}

.no-results {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}
.file-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px 18px 14px 18px;
    margin: 0;
    min-width: 240px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.file-card .file-icon {
    width: 38px;
    height: 38px;
    margin-right: 12px;
}
.file-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.file-card-title {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    word-break: break-all;
}
.file-card-meta {
    font-size: 13px;
    color: #666;
    margin: 6px 0;
}
.file-card small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.file-card-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}
.file-card-actions a {
    color: #409eff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.file-card-actions a:hover {
    color: #1a73e8;
}
@media (max-width: 900px) {
    .file-card-list {
        max-width: 100%;
        gap: 10px;
    }
    .file-card {
        min-width: 90vw;
        max-width: 100vw;
        padding: 14px 8px 10px 12px;
        flex: 1;
    }
    .file-card-main {
        flex-direction: row;
        display: flex;
    }
    .file-card-info {
        flex: 1;
    }
    .file-card-actions {
        flex-direction: row;
        align-items: center;
        margin: 10px;
        min-width: 0;
        gap: 12px;
    }
}
@media (max-width: 600px) {
    .file-card-list {
        flex-direction: column;
        gap: 8px;
    }
    .file-card {
        min-width: 0;
        max-width: 100%;
        border-radius: 8px;
        padding: 10px 6px 8px 8px;
    }
    .file-card-title {
        font-size: 15px;
    }
    .file-card-main {
        flex-direction: column;
    }
    .file-card-actions {
        flex-direction: row;
        align-items: center;
        margin-left: 0;
        margin-top: 10px;
        min-width: 0;
        gap: 8px;
    }
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 10px 0 18px 0;
}
.pagination-btn {
    background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    padding: 7px 22px;
    margin: 0 4px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(64,158,255,0.08);
}
.pagination-btn:disabled {
    background: #e0e6ed;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}
.pagination-info {
    font-size: 15px;
    color: #555;
    margin: 0 8px;
}